﻿<StackPanel x:Class="TanmiaGrp.GeneralLedger.WinApp.Scenarios.EntityNavigationBar"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:mui="http://firstfloorsoftware.com/ModernUI"
            xmlns:loc="clr-namespace:TanmiaGrp.GeneralLedger.WinApp"
            Orientation="Horizontal" 
            FlowDirection="RightToLeft">
    <StackPanel.Resources>
        <Style TargetType="{x:Type mui:ModernButton}">
            <Setter Property="Width" Value="32" />
            <Setter Property="Height" Value="32" />
            <Setter Property="EllipseDiameter" Value="30" />
            <Setter Property="Margin" Value="2,0,0,0" />
            <Setter Property="IconWidth" Value="12" />
            <Setter Property="IconHeight" Value="12" />
            <Setter Property="Background" Value="White" />
            <Setter Property="Foreground" Value="#7f7f7f" />
            <Setter Property="BorderBrush" Value="#c9c9c9" />
            <Setter Property="EllipseStrokeThickness" Value="2" />
        </Style>
    </StackPanel.Resources>

    <mui:ModernButton ToolTip="السجل الأخير" 
                      IconData="{StaticResource Download}" 
                      Command="{Binding Path=GoToBackEntityCommand}"
                      CommandParameter="{x:Static loc:NavigationMoveEnum.Last}">
        <mui:ModernButton.LayoutTransform>
            <RotateTransform Angle="90" />
        </mui:ModernButton.LayoutTransform>
    </mui:ModernButton>

    <mui:ModernButton ToolTip="السجل التالي" 
                      IconData="{StaticResource Left}" 
                      Command="{Binding Path=GoToBackEntityCommand}"
                      CommandParameter="{x:Static loc:NavigationMoveEnum.Next}" />

    <mui:ModernButton ToolTip="السجل السابق" 
                      IconData="{StaticResource Left}" 
                      FlowDirection="LeftToRight" 
                      Command="{Binding Path=GoToForthEntityCommand}"
                      CommandParameter="{x:Static loc:NavigationMoveEnum.Previous}" />

    <mui:ModernButton ToolTip="السجل الأول" 
                      IconData="{StaticResource Download}" 
                      Command="{Binding Path=GoToForthEntityCommand}"
                      CommandParameter="{x:Static loc:NavigationMoveEnum.First}">
        <mui:ModernButton.LayoutTransform>
            <RotateTransform CenterX="0" CenterY="0" Angle="270" />
        </mui:ModernButton.LayoutTransform>
    </mui:ModernButton>
</StackPanel>
